package com.sunnyatwal.kettlebell.model;

import android.os.Parcel;
import android.os.Parcelable;


public class CountDown extends ExerciseUnit {

	private static final int DEFAULT_COUNTDOWN_TIME = 5000;

	private static final String DEFAULT_COUNTDOWN_NAME = "Get Ready!";

	
	public CountDown() {
		super(tempIcon, DEFAULT_COUNTDOWN_NAME, DEFAULT_COUNTDOWN_TIME);
	}
	
	
	public CountDown(Parcel p) {
		super(p);
	}
	
	
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		super.writeToParcel(dest, flags);
	}
	
	
	public static final Parcelable.Creator<CountDown> CREATOR = 
    		new Parcelable.Creator<CountDown>() {
		
				@Override
				public CountDown createFromParcel(Parcel source) {
					return new CountDown(source);
				}

				@Override
				public CountDown[] newArray(int size) {
					return new CountDown[size];
				}
    };
	
    
    @Override 
	public ElapsedTimeResult ElapseTime(int pCountDownInterval) {    	
		return new ElapsedTimeResult(pCountDownInterval, super.ElapseTimeBasic(pCountDownInterval));
	}

    
}
